﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Net5ApiANdWpfClient.Lib.Model.SystemAdmin
{
    public class AdminUser: BaseModel
	{
        public AdminUser()
        { }
        #region Model

        public string Token { get; set; }

		///// <summary>
		///// 用户名
		///// </summary>
		//public string user_name
		//{
		//	get; set;
		//}
		///// <summary>
		///// 密码
		///// </summary>
		//public string pass_word
		//{
		//	get; set;
		//}
		///// <summary>
		///// 姓名
		///// </summary>
		//public string user_full_name
		//{
		//	get; set;
		//}
		//输入propdp，连续按两下Tab健，自动生成定义依赖属性的语法
		///// <summary>
		///// 用户名
		///// </summary>
		//public string user_name
		//{
		//	get { return (string)GetValue(UserNameProperty); }
		//	set { SetValue(UserNameProperty, value); }
		//}
		//public static readonly DependencyProperty UserNameProperty =
		//	 DependencyProperty.Register("user_name", typeof(string), typeof(AdminUser), new PropertyMetadata(""));

		//      /// <summary>
		//      /// 密码
		//      /// </summary>
		//      public string pass_word
		//      {
		//	get { return (string)GetValue(PassWordProperty); }
		//	set { SetValue(PassWordProperty, value); }
		//}
		//public static readonly DependencyProperty PassWordProperty =
		//	 DependencyProperty.Register("pass_word", typeof(string), typeof(AdminUser), new PropertyMetadata(""));


		///// <summary>
		///// 密码
		///// </summary>
		//public string v_pass_word
		//{
		//	get { return (string)GetValue(VPassWordProperty); }
		//	set { SetValue(VPassWordProperty, value); }
		//}
		//public static readonly DependencyProperty VPassWordProperty =
		//	 DependencyProperty.Register("v_pass_word", typeof(string), typeof(AdminUser), new PropertyMetadata(""));


		///// <summary>
		///// 姓名
		///// </summary>

		//public string user_full_name
		//{
		//	get { return (string)GetValue(UserFullNameProperty); }
		//	set { SetValue(UserFullNameProperty, value); }
		//}

		//// Using a DependencyProperty as the backing store for user_full_name.  This enables animation, styling, binding, etc...
		//public static readonly DependencyProperty UserFullNameProperty =
		//	DependencyProperty.Register("user_full_name", typeof(string), typeof(AdminUser), new PropertyMetadata(""));

	
		private string _user_name;
		public string user_name
		{
			get { return _user_name; }
			set
			{
				_user_name = value;
				OnPropertyChanged("user_name");
			}
		}

		private string _pass_word;
		public string pass_word
		{
			get { return _pass_word; }
			set
			{
				_pass_word = value;
				OnPropertyChanged("pass_word");
			}
		}
		private string _v_pass_word;
		/// <summary>
		/// 验证密码
		/// </summary>
		public string v_pass_word
        {
            get { return _v_pass_word; }
            set { _v_pass_word=value;
				OnPropertyChanged("v_pass_word");
			}
        }

		private string _user_full_name;
		public string user_full_name
		{
			get { return _user_full_name; }
			set
			{
				_user_full_name = value;
				OnPropertyChanged("user_full_name");
			}
		}

	


		/// <summary>
		/// 照片链接
		/// </summary>
		public string user_photo
		{
			get; set;
		}
		/// <summary>
		/// 状态 1:有效  0:无效
		/// </summary>
		public int user_status
		{
			get; set;
		}
		/// <summary>
		/// 最后登录时间
		/// </summary>
		public DateTime? last_lgoin_date
		{
			get; set;
		}
		/// <summary>
		/// 最后登录ip
		/// </summary>
		public string last_login_ip
		{
			get; set;
		}
		/// <summary>
		/// 创建人
		/// </summary>
		public string creator_name
		{
			get; set;
		}
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime? creator_date
		{
			get; set;
		}
		/// <summary>
		/// 修改人
		/// </summary>
		public string modifi_name
		{
			get; set;
		}
		/// <summary>
		/// 修改时间
		/// </summary>
		public DateTime? modifi_date
		{
			get; set;
		}
		#endregion Model


		public string StatusDescribe { get {
              return  user_status == 1 ? "有效" :"无效";
            } }
    }
}
